﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/default.Master" AutoEventWireup="true"
    CodeBehind="National-Plan.aspx.cs" Inherits="NRCP.National_Plan" %>

<%@ Register Assembly="NRCP" Namespace="UI.Library.Web" TagPrefix="cc1" %>
<%@ Register Src="Controls/wucStepsHelp.ascx" TagName="wucStepsHelp" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/jquery.jstepper.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".text-medium").jStepper({ minValue: 0, maxValue: 1000, minLength: 2 });
            $('#dataTable tbody tr:odd').addClass('alt');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <br class="clear" />
   <div class="grid_24 main-content alpha">
        <ul class="breadcrumbs css3-support">
          <li class="firstb css3-support"><a class="active">
                <h1>
                    1</h1>
                National Plan</a> </li>
            <li class="css3-support"><a class="active">
                <h1>
                    2</h1>
                Yearly Plan</a> </li>
            <li style="background: none"><a>
                <h1>3</h1>
                Monthly Plan</a> </li>
            <li style="background: none"><a>
                <h1>
                    4</h1>
                Finish</a> </li>
        </ul>
    </div>
    <br class="clear" />
    <br />
    <div class="grid_17 alpha">
    
        <cc1:ResponseMessage ID="respMessage" runat="server"></cc1:ResponseMessage>
        <asp:Repeater ID="repDivision" runat="server" OnItemDataBound="repDivision_ItemDataBound">
            <ItemTemplate>
                Plan for <strong>
                    <%# Eval("Division.Name")%></strong><asp:HiddenField ID="hidDivisionId" runat="server"
                        Value='<%# Eval("Id")%>' />
                <br />
                <table id="datatable" class="mGrid">
                    <thead>
                        <tr>
                            <th>
                                Test Group
                            </th>
                            <asp:Repeater ID="repFishTypes" runat="server">
                                <ItemTemplate>
                                    <th>
                                        <%# Eval("Fish.Name")%>
                                        <asp:HiddenField ID="hidFishId" runat="server" Value='<%# Eval("Id")%>' />
                                    </th>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="repTestGroups" runat="server" OnItemDataBound="repTestGroups_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%# Eval("ChemicalGroup.Name")%>
                                        <asp:HiddenField ID="hidTestGroupId" runat="server" Value='<%# Eval("Id")%>' />
                                    </td>
                                    <asp:Repeater ID="repSampleCount" runat="server">
                                        <ItemTemplate>
                                            <td>
                                                <asp:TextBox ID="txtSample" runat="server" CssClass="text-quantity" Text="1"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvtxtSample" ControlToValidate="txtSample" SetFocusOnError="true"
                                                    Display="Dynamic" ValidationGroup="valgrpNationalPlan" runat="server" ErrorMessage="*"
                                                    CssClass="validation-message"></asp:RequiredFieldValidator>
                                            </td>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <td>
                                                <asp:TextBox ID="txtSample" runat="server" CssClass="text-quantity" Text="1"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvtxtSample" ControlToValidate="txtSample" SetFocusOnError="true"
                                                    Display="Dynamic" ValidationGroup="valgrpNationalPlan" runat="server" ErrorMessage="*"
                                                    CssClass="validation-message"></asp:RequiredFieldValidator>
                                            </td>
                                        </AlternatingItemTemplate>
                                    </asp:Repeater>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </ItemTemplate>
            <SeparatorTemplate>
                <br class="clear" />
            </SeparatorTemplate>
        </asp:Repeater>
        <br class="clear" />
        <br />
        <asp:Button ID="btnSave" runat="server" Text="Save & Next" CssClass="button medium green"
            ValidationGroup="valgrpNationalPlan" OnClick="btnSave_Click" />
    </div>
     <uc1:wucStepsHelp ID="wucStepsHelp1" runat="server" HelpStep="YearlyPlan" />
</asp:Content>
